﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

using MyHotel_BUSWS.MyHotel_LoaiPhongDAO_Webservice;
using MyHotel_BUSWS.MyHotel_DanhMucPhongDAO_Webservice;
using MyHotel_BUSWS.MyHotel_PhongDAO_Webservice;


namespace MyHotel_BUSWS
{
    /// <summary>
    /// Summary description for MHLapDanhMucPhongBUSWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class MHLapDanhMucPhongBUSWS : System.Web.Services.WebService
    {

        [WebMethod]
        public LoaiPhong[] getListLoaiPhong()
        {
            return MHLapDanhMucPhongBUS.getListLoaiPhong();
        }

        [WebMethod]
        public Danhmucphong[] getListDanhMucPhong(int maloai)
        {
            return MHLapDanhMucPhongBUS.getListDanhMucPhong(maloai);
        }

        [WebMethod]
        public Danhmucphong[] getDanhSachDanhMucPhong()
        {
            return MHLapDanhMucPhongBUS.getDanhSachDanhMucPhong();
        }

        [WebMethod]
        public LoaiPhong getLoaiPhongbyMaLoai(int maloai)
        {
            return MHLapDanhMucPhongBUS.getLoaiPhongbyMaLoai(maloai);
        }

        [WebMethod]
        public Phong[] getListPhongbyMaLoai(int maloai)
        {
            return MHLapDanhMucPhongBUS.getListPhongbyMaLoai(maloai);
        }

        [WebMethod]
        public bool themPhong(Phong phong)
        {
            return MHLapDanhMucPhongBUS.themPhong(phong);
        }

        [WebMethod]
        public bool capNhatPhong(Phong phong)
        {
            return MHLapDanhMucPhongBUS.capNhatPhong(phong);
        }

        [WebMethod]
        public bool xoaPhong(Phong phong)
        {
            return MHLapDanhMucPhongBUS.xoaPhong(phong);
        }
    }
}
